﻿using System;
using System.Reflection;

namespace Snake.Core
{
    /// <summary>
    /// 命名的国际惯例
    /// </summary>
    public interface INamingConvention : IResolvable
    {
        string GetForeignKeyName(PropertyInfo propertyInfo);
        void GetKey(Type type, out PropertyInfo propertyInfo, out string columnName);
        string GetTableName(Type type);
        string GetColumnName(PropertyInfo propertyInfo);
    }
}